#sort_panel {
  background: $medium-gray;
  padding: 45px 0 8px 0;
  position: fixed;
  top: 27px;
  left: 0;
  z-index: 1;
  width: 100%;
  border-bottom: $default-border;

  div.info {
    margin: 16px 12px 8px 163px;
  }

  .buttons {
    margin-left: 163px;
  }
}

#sitemap-wrapper {
  position: relative;
  min-height: 100%;

  .loading .spinner {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
  }
}

.sitemap_pagename_link {
  background-color: #fff;
  color: black;
  display: block;
  padding-left: $default-padding;
  text-decoration: none;
  @include transition(background-color, 400ms);

  &.inactive {
    color: #656565;
  }

  :hover {
    text-decoration: underline;

    &:after {
      content: '';
      width: 16px;
      height: 16px;
      float: left;
      margin-right: $default-margin;
      background: image-url('alchemy/icons.png') -160px -168px;
      margin-top: $default-margin;
    }
  }
}

.redirect_url {
  position: absolute;
  top: $default-padding;
  right: 199px;
  text-align: right;
  background-color: #fff0c4;
  line-height: $sitemap-line-height;
  padding-right: $default-padding;
  font-size: 10px;
  padding-left: $default-padding;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
}

#page_selector_container .sitemap_pagename_link:hover {
  text-decoration: none;
}

#page_selector_container .sitemap_pagename_link:hover:after {
  display: none;
}

.sitemap_line_spacer {
  float: left;
  width: 20px;
  height: 28px;
}

.sitemap_page {
  height: $sitemap-line-height;
  padding-bottom: $default-padding;
  padding-top: $default-padding;
  position: relative;

  &.highlight .sitemap_pagename_link {
    background-color: #FFFBA5;
  }

  &.no-match .sitemap_pagename_link {
    color: $medium-gray;
  }

  &:hover .sitemap_pagename_link {
    background-color: $light_yellow;
  }
}

div.sitemap_left_images {
  width: 16px;
  margin-top: 3px;
  float: left;
  margin-right: 8px;
  background-color: $light-gray;
}

.sitemap_right_tools {
  height: $sitemap-line-height;
  background-color: $light-gray;
  padding-left: 8px;
  float: right;
  width: 120px;

  .sitemap_tool {
    float: left;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
  }

  .icon.blank {
    margin-left: 2px;
    float: left;
    margin-top: 3px;
    margin-right: 3px;
  }
}

.sitemap_sitetools {
  padding: 0;
  float: left;
  width: 72px;
}

div#page_selector_container div.sitemap_right_tools {
  width: 24px;
}

ul#sitemap {

  li.legend {

    span.right {
      margin-right: 52px;

      span.page_move {
        display: inline-block;
        vertical-align: middle;
        width: 74px;
        text-align: center;
      }
    }
  }

  .page_folder {
    @extend .icon;
    float: left;
    margin-left: -21px;
    margin-top: 1px;

    &.collapsed { @extend .icon.expand.small }
    &.folded { @extend .icon.collapse.small }
  }

  ul {
    margin: 0;
    padding: 0;
  }

  li {
    padding-left: 0;

    .selected_page a {
      background-color: $linked-color;
      color: $dark-gray;
    }

    li {
      padding-left: $sitemap-line-height;
      padding-right: 0;
    }
  }
}

ul#sitemap li .sitemap_toolrow,
ul.list li .sitemap_toolrow {
  margin: 0;
  overflow: auto;
  padding: $default-padding 0;
}

ul#sitemap .sitemap_sitename,
ul.list .sitemap_sitename {
  height: $sitemap-line-height;
  line-height: $sitemap-line-height;
  overflow: hidden;
}

.page_infos {
  @extend .right-rounded-border;
  background-color: #fff;
  border-left: 1px solid $light-gray;
  float: right;
  height: $sitemap-line-height;

  .page_status {
    margin: $default-margin;
  }
}

#header .page_status_and_name .page_status {
  float: none;
  display: inline-block;
  vertical-align: -3px;
  margin-left: 2px;
}

.page_status {
  width: 16px;
  height: 16px;
  background-image: image-url('alchemy/icons.png');
  background-repeat: no-repeat;
  float: left;

  &.restricted {
    background-position: -256px -39px;
  }

  &.not_restricted {
    background-position: -288px -39px;
    opacity: 0.3;
  }

  &.visible {
    background-position: -128px -39px;
  }

  &.not_visible {
    background-position: -160px -39px;
    opacity: 0.3;
  }

  &.public {
    background-position: -192px -39px;
  }

  &.not_public {
    background-position: -224px -39px;
    opacity: 0.3;
  }
}

#sitemap {

  &.sorting {

    .page.icon { cursor: move }
  }

  .page.icon {
    float: left;
    position: relative;
  }

  .locked .page.icon {
    background-position: -32px -40px;
  }
}

.sitemap_sitestatus {
  float: right;
  margin-top: $default-margin;
}

a.folder_link {
  text-decoration: none;
  outline: none;
}

#create_language_tree_form {
  width: 80%;
  max-width: 500px;
  margin: 2em auto;
  padding: 4*$default-padding;
  border: $default-border;
  background: $medium-gray;
  @extend %rounded-border;
}

#sitemap_heading {
  padding: 0;

  .page_infos {
    margin-right: 144px;
    width: 40px;
    text-align: center;
    float: right;
    line-height: 28px;
    background: transparent;
  }

  .page_name {
    line-height: 28px;
    margin-left: 24px;
  }
}

#page_filter_result {
  display: none;
  padding-left: 4*$default-padding;
}

.alchemy-dialog ul#sitemap {
  margin: 0;
  padding: 0 8px 8px 0;

  .page.icon { cursor: default }

  li li.selectboxit-option {
    padding-left: 8px;
    padding-right: 8px;
  }

  .selectboxit-options {
    right: 0;
  }

  .close_elements_from_page_selector {
    position: absolute;
    right: $default-padding;
    top: 12px;
    font-size: 16px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    @extend .icon-cross;
  }
}

.elements_from_page_selector {
  width: 100%;
}

.elements_for_page {
  position: absolute;
  right: 32px;
  top: -7px;
  z-index: 15;
  background-color: white;
  width: 280px;
  height: 33px;
  padding: $default-padding;
  border: $default-border;
  box-shadow: #9ea09f 0px 0px 4px;
  @extend %rounded-border;

  .spinner {
    top: 17px !important;
    left: 50% !important;
    margin-left: $default-margin;
  }

  .alchemy_selectbox {
    width: 252px;
  }
}
